.TH "Video" 3 "25 May 2010" "Colision" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Video \- 
.SS "Functions"

.in +1c
.ti -1c
.RI "unsigned long \fBgetVBEAddress\fP (unsigned long endereco)"
.br
.ti -1c
.RI "char * \fBenter_graphics\fP (int mode, __dpmi_meminfo *map)"
.br
.ti -1c
.RI "void \fBleave_graphics\fP (__dpmi_meminfo *map)"
.br
.ti -1c
.RI "void \fBset_large_pixel\fP (int x, int y, int color, char *base)"
.br
.ti -1c
.RI "int \fBget_pixel\fP (int x, int y, char *base)"
.br
.ti -1c
.RI "void \fBclear_screen\fP (char color, char *base)"
.br
.ti -1c
.RI "void \fBclear_game_screen\fP (char color, char *base)"
.br
.ti -1c
.RI "void \fBreset_screen\fP (char color, char *base)"
.br
.ti -1c
.RI "void \fBdraw_line\fP (int x0, int y0, int x1, int y1, int color, char *base)"
.br
.ti -1c
.RI "void \fBdraw_rect\fP (int x1, int y1, int x2, int y2, int color, char *base)"
.br
.ti -1c
.RI "void \fBdrawCharAt\fP (char c, int x, int y, int fore_color, int back_color, int char_scale, char *table, char *base)"
.br
.ti -1c
.RI "void \fBswap_buffers\fP (char *buffer, char *base)"
.br
.ti -1c
.RI "void \fBswap_game_buffers\fP (char *buffer, char *base)"
.br
.in -1c
.SS "Variables"

.in +1c
.ti -1c
.RI "int \fBVRES\fP"
.br
.ti -1c
.RI "int \fBHRES\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Entering/leaving/utility video functions 
.SH "Function Documentation"
.PP 
.SS "void clear_game_screen (char color, char * base)"Limpa a área de jogo do ecrã. 
.SS "void clear_screen (char color, char * base)"Set graphics memory at memory address 'base' to 'color'. 
.SS "void draw_line (int x0, int y0, int x1, int y1, int color, char * base)"Draw a line of color 'color' between point (xi,yi) and (xf,yf) at memory address 'base' 
.SS "void draw_rect (int x1, int y1, int x2, int y2, int color, char * base)"Desenha um rectângulo com vértices (x1,y1),(x2,y1),(x2,y2),(x1,y2) com a cor especificada. 
.SS "void drawCharAt (char c, int x, int y, int fore_color, int back_color, int char_scale, char * table, char * base)"Imprimir um caracter na posiçaõ (X,Y) com uma cor de letra e fundo. 
.SS "char* enter_graphics (int mode, __dpmi_meminfo * map)"Entra no modo gráfico. Define VRES e HRES. Devolve um apontador para a memória gráfica ou NULL em caso de erro. 
.SS "int get_pixel (int x, int y, char * base)"Returns the pixel color at screen coordinates x, y at memory address 'base' 
.SS "unsigned long getVBEAddress (unsigned long endereco)"Enter graphics mode, enabling near pointers and mapping video physical memory to program virtual address.
.PP
Returns a generic pointer pointing to video memory address or NULL on error. 'mode' specifies the VESA graphics mode to use, and the mapping information is returned through 'map'.
.PP
Also initializes two global variables, VRES and HRES, 
.SS "void leave_graphics (__dpmi_meminfo * map)"Unmap video memory, disable near pointer and returns to text mode 
.SS "void reset_screen (char color, char * base)"Limpa todo o ecra. 
.SS "void set_large_pixel (int x, int y, int color, char * base)"Draws a pixel of color 'color' at screen coordinates x, y at memory address 'base' 
.SS "void swap_buffers (char * buffer, char * base)"Copia o buffer de imagem 'buffer' para o endereço de memória 'base'. 
.SS "void swap_game_buffers (char * buffer, char * base)"Troca os buffers de imagem com o da memória 'base'. 
.SH "Variable Documentation"
.PP 
.SS "int \fBHRES\fP"Variável global com quantidade de linhas horizontais. 
.SS "int \fBVRES\fP"Variável global com quantidade de linhas verticais. global variable with the vertical resolution in pixels 
.SH "Author"
.PP 
Generated automatically by Doxygen for Colision from the source code.
